<?php 
$link = "index.php?com=tin_list";

$limit = 10;

$tins = $ado->Tin_List();

$total_record = mysql_num_rows($tins);

$total_page = ceil($total_record/$limit);

if(isset($_GET['page'])==false){
	$page = 1;
}
else{ 
	$page=$_GET['page'];
	settype($page,"int");
}

$offset = $limit * ($page - 1);
$listsp = $ado->Tin_List($limit,$offset);
$page_show=5;
?>

<div class="sp">
    <div class="sp_title" style="margin-bottom: 10px">
                <span>
                    <a style="color:#FFF" href="ho-tro-ki-thuat.html">Hỗ trợ kĩ thuật</a></span></div>
            <?php while($row = mysql_fetch_assoc($listsp)){    
    ?>
<div class="block_new" style="border-bottom: 2px dotted "> 
    <div style="float: left;height: 130px;width: 120px">
        <a  class="left wrap_img" href="ho-tro/<?php echo $row['TieuDe_KD']; ?>-<?php echo $row['idTin']; ?>.html">	
            <img src="<?php echo str_replace('../','',$row['UrlHinh']);?>" alt="<?php echo $row['TieuDe']; ?>" title="<?php echo $row['TieuDe']; ?>" height="110" width="110">
        </a>
    </div>
    <div class="detail_news" style="float: left;width:400px">
        <a class="clor_yellow" href="ho-tro/<?php echo $row['TieuDe_KD']; ?>-<?php echo $row['idTin']; ?>.html"><?php echo $row['TieuDe']; ?></a>  <br />
        <p><?php echo $row['TomTat']; ?></p>
    </div>
    
    <div style="clear:both"></div>					    
</div><!--end of block_new -->
<?php } ?>
        </div>


